import request from '@/utils/request';

export function queryClassifyList(data) {
	//轮播图分页查询
	return request({
		method: 'get',
		url: '/sysClassify/query',
		params: data,
	})
}

export function addClassify(data) {
	//新增轮播图
	return request({
		method: 'post',
		url: '/sysClassify/add',
		data,
	})
}

export function updateClassify(data) {
	//修改轮播图
	return request({
		method: 'post',
		url: '/sysClassify/update',
		data,
	})
}

export function deleteClassify(id) {
	//删除轮播图
	return request({
		method: 'get',
		url: '/sysClassify/delete/' + id
	})
}

export function queryClassify(id) {
	//轮播图详情
	return request({
		method: 'get',
		url: '/sysClassify/query/' + id
	})
}